import Vue from 'vue'
import VueRouter from 'vue-router'
// 引入组件
import Menu from '@/views/Menu.vue'
import Project from '@/views/Project.vue'
import Risk from '@/views/Risk.vue'
import Quality from '@/views/Quality.vue'
// 使用路由
Vue.use(VueRouter)

// 创建VueRouter实例
const router = new VueRouter({
  mode: 'history',
  // 配置路由path组件
  routes: [
    {
      path: "/",
      name: 'Menu',
      component: Menu
    },
    {
      path:'/project/',
      name:'Project',
      component: Project
    },
    {
      path:'/risk/',
      name:'Risk',
      component: Risk
    },
    {
      path:'/quality/',
      name:'Quality',
      component: Quality
    },
  ]
})

// 导入路由实例
export default router
